package cn.cecurio.multithread.ch1_4;

/**
 * @author: Cecurio
 * @create: 2018-01-16 21:10
 **/
public class Run {
    public static void main(String[] args) {
        MyThread myThread = new MyThread();
        System.out.println("begin == " + myThread.isAlive());
        for (int i=0;i<10;i++) {
            System.out.println(i + " : " + myThread.isAlive());
        }

        System.out.println("end == " + myThread.isAlive());
        myThread.start();

//        try {
//            Thread.sleep(1000);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }

    }
}
